//
//  TeacherAppraiseViewController.swift
//  DriverSchoolAPP
//
//  Created by Logel on 2017/5/18.
//  Copyright © 2017年 Logel. All rights reserved.
//

import UIKit

class TeacherAppraiseViewController: UIViewController,UITableViewDataSource,UITableViewDelegate{
    @IBOutlet weak var headImg: UIImageView!
    var starView:GYSStarLevelView = GYSStarLevelView()
    override func viewDidLoad() {
        super.viewDidLoad()
        headImg.layer.cornerRadius = headImg.frame.size.width/2
        let starView = GYSStarLevelView.init(frame:CGRect(x: 218, y: 72,width: 100, height: 20))
        self.view.addSubview(starView)
        starView.settingMaxValue(max: 5.0)
        starView.setFontSize(fontSize: 20)
        self.starView = starView
        starView.settingHighlightValue(highlight: 4.5)
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    func numberOfSections(in tableView: UITableView) -> Int {
        return 1
    }
    
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 10
    }
    
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "reuseCell", for: indexPath) as! TeacherAppraiseTableViewCell
        return cell
    }

}
